package com.tanhua.dubbo.server.pojo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.List;

/**
 * @Author: zxw
 * @Description:
 * @Date: Created in 11:37 2021/1/17
 * @ModifiedBy:
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "bg_message")
@Builder
public class Message implements java.io.Serializable {

    private ObjectId id; // id
    private ObjectId publishId;//动态id
    private Integer state; // 审核状态
    private Integer topState; // 置顶状态
    private Long userId; // 作者ID
    private Integer reportCount; // 举报数
    private Integer likeCount; // 点赞数
    private Long createDate; // 发布日期
    private Integer commentCount; // 评论数
    private Integer forwardingCount; // 转发数
    private String text; // 正文
    private List<String> medias; //图片列表

}
